
// 首页非权限树菜单
export const DASHBORAD_MENU = {
  routeName: 'Dashboard',
  resourceName: '首页',
  resourceCode: '10001',
  icon: 'dashboard'
}

export const MEUN_TREE = [
  // 权限管理
  {
    routeName: '',
    resourceName: '权限管理',
    resourceCode: '10002',
    icon: 'lock',
    children: [
      {
        routeName: 'RoleManage',
        resourceName: '角色管理',
        resourceCode: '10002001',
        children: [
          {
            resourceName: '新建角色',
            routeName: 'RoleCreate',
            resourceCode: '10002001001',
            isNotMenu: true
          },
          {
            resourceName: '修改角色',
            routeName: 'RoleUpdate',
            resourceCode: '10002001002',
            isNotMenu: true
          }
        ]
      },
      {
        routeName: 'AccountManage',
        resourceName: '账户管理',
        resourceCode: '10002002',
        children: [
          {
            resourceName: '新建账户',
            routeName: 'AccountCreate',
            resourceCode: '10002002001',
            isNotMenu: true
          },
          {
            resourceName: '修改账户',
            routeName: 'AccountUpdate',
            resourceCode: '10002002002',
            isNotMenu: true
          }
        ]
      }
    ]
  },
  // 游戏用户管理
  {
    routeName: '',
    resourceName: '用户管理',
    resourceCode: '10003',
    icon: 'people',
    children: [
      {
        routeName: 'CustomerManage',
        resourceName: '用户管理',
        resourceCode: '10003001',
        children: [
          {
            resourceName: '用户信息',
            routeName: 'CustomerDetail',
            resourceCode: '10003001001',
            isNotMenu: true
          }
        ]
      }
    ]
  },
  // 充值记录管理
  {
    routeName: '',
    resourceName: '充值管理',
    resourceCode: '10004',
    icon: 'money',
    children: [
      {
        routeName: 'RechargeManage',
        resourceName: '充值管理',
        resourceCode: '10004001'
      }
    ]
  },
  // 基础功能支持
  {
    routeName: '',
    resourceName: '游戏支持管理',
    resourceCode: '10005',
    icon: 'nested',
    children: [
      {
        routeName: 'SignRewardManage',
        resourceName: '签到奖励管理',
        resourceCode: '10005001'
      },
      {
        routeName: 'NoticeManage',
        resourceName: '公告管理',
        resourceCode: '10005002',
        children: [
          {
            resourceName: '新建公告',
            routeName: 'NoticeCreate',
            resourceCode: '10005002001',
            isNotMenu: true
          },
          {
            resourceName: '修改公告',
            routeName: 'NoticeUpdate',
            resourceCode: '10005002002',
            isNotMenu: true
          }
        ]
      },
      {
        routeName: 'MarqueeManage',
        resourceName: '跑马灯管理',
        resourceCode: '10005003',
        children: [
          {
            resourceName: '新建跑马灯',
            routeName: 'MarqueeCreate',
            resourceCode: '10005003001',
            isNotMenu: true
          },
          {
            resourceName: '修改跑马灯',
            routeName: 'MarqueeUpdate',
            resourceCode: '10005003002',
            isNotMenu: true
          }
        ]
      },
      {
        routeName: 'GameLogManage',
        resourceName: '日志管理',
        resourceCode: '10005004'
      }
    ]
  }
]

export const COMMON_PATH = [
  DASHBORAD_MENU,
  {
    routeName: 'ChangePassword',
    resourceName: '修改密码',
    resourceCode: '10199901'
  },
  {
    routeName: 'NotFound',
    resourceName: '404',
    resourceCode: '10199902'
  },
  {
    routeName: 'NoAccess',
    resourceName: '无权限',
    resourceCode: '10199902'
  }
]
